# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-ido
pkgdesc="Xiaomi Xiaomi Redmi 3"
pkgver=0.1
pkgrel=10
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-xiaomi-ido mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo
	fb.modes
	initfs-hook.sh
	"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
}
sha512sums="984f81de19aafc3a354317c2fa1fbfa4809311fd85dc437e5074eb49e9c74d5a0ce7a0d1bf722c8a5e83ae6915fb2bcaca0abdb3f904ccb37359b158317f4ac9  deviceinfo
8a72f8d34fd0a8c7b6de0a2ab16e255b3fe28993e1aef7c25c3c4becc5851e51f5dcc3814acc75c8bb829bc02d180d976ee3877a98982d29cfc5cb7ea84f1c32  fb.modes
3b46dfab8465935349a8775e0247a3ea4274c16a9f526f17e1397ae2f6bdef11d9cbd969dc630a7d647e4130f5a2f1a8e85357fc34a5b1900411f9219a62b38e  initfs-hook.sh"
